home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / c / vbcc.lha / vbcc / targets / m68k-amigaos / include / time.h < prev   
C/C++ Source or Header  |  2001-04-28  |  1KB  |  53 lines

  1. #pragma begin_header
  2. #ifndef __TIME_H
  3. #define __TIME_H 1
  4.  
  5. #ifndef __TIME_T
  6. #define __TIME_T 1
  7. typedef long time_t;
  8. #endif
  9.  
  10. #ifndef __CLOCK_T
  11. #define __CLOCK_T 1
  12. typedef long clock_t;
  13. #endif
  14.  
  15. #ifndef __SIZE_T
  16. #define __SIZE_T 1
  17. typedef unsigned long size_t;
  18. #endif
  19.  
  20. #undef NULL
  21. #define NULL ((void *)0)
  22.  
  23. struct tm {
  24.         int     tm_sec;
  25.         int     tm_min;
  26.         int     tm_hour;
  27.         int     tm_mday;
  28.         int     tm_mon;
  29.         int     tm_year;
  30.         int     tm_wday;
  31.         int     tm_yday;
  32.         int     tm_isdst;
  33. /*        long    tm_gmtoff;
  34.         char    *tm_zone;*/
  35. };
  36.  
  37. time_t time(time_t *);
  38. double difftime(time_t,time_t);
  39. char *ctime(const time_t *);
  40. char *asctime(const struct tm *);
  41. clock_t clock(void);
  42. struct tm *gmtime(const time_t *);
  43. struct tm *localtime(const time_t *);
  44. time_t mktime(struct tm *);
  45. size_t strftime(char *,size_t,const char *,const struct tm *);
  46.  
  47. #define CLOCKS_PER_SEC 50   /* z.Z. wohl nutzlos    */
  48.  
  49. #define difftime(a,b) ((double)((a)-(b)))
  50.  
  51. #endif
  52. #pragma end_header
  53.